//
//  ActivityDetailViewController.m
//  DaHaiDouBan
//
//  Created by dllo on 15/10/27.
//  Copyright (c) 2015年 Wang Dahai. All rights reserved.
//

#import "ActivityDetailViewController.h"
#import "MBProgressHUD.h"
@interface ActivityDetailViewController ()

@property (nonatomic, retain) MBProgressHUD *hud;
@end

@implementation ActivityDetailViewController
- (void)dealloc
{
    [_activityDetailView release];
    [_myScrollView release];
    [_hud release];
    [super dealloc];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor lightGrayColor];
//    //让小菊动起来
//    self.hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
//    [self.hud show:YES];
//    self.hud.labelText = @"小菊正在为你加载中......";
//    self.hud.labelFont = [UIFont systemFontOfSize:25];
//    self.hud.labelColor = [UIColor purpleColor];
    self.myScrollView = [[UIScrollView alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    self.myScrollView.contentSize = CGSizeMake(375, 667+800);
    [self.view addSubview:self.myScrollView];
    [_myScrollView release];
    self.activityDetailView = [[ActivityDetailView alloc] initWithFrame:[[UIScreen mainScreen] bounds] activity:self.activity];
    
    [self.myScrollView addSubview:self.activityDetailView];
    [_activityDetailView release];
   //让小菊停下来
   // [self.hud hide:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
